package com.dwxt.cdms.applets.service;

import com.dwxt.common.base.BaseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: TODO
 * @className: LocController
 * @author: yanlong
 * @createDate: 2021/05/25 16:47
 * @version: v1.0
 */
@RestController
@RequestMapping("/cdms/loc")
public class LocController {
    @Autowired
    private LocService locService;


    @RequestMapping("/getLoc")
    public BaseResult getLoc(@RequestParam(required = true)Integer customerId,
                             @RequestParam(required = true)String startTime,
                             @RequestParam(required = true)String endTime){
        return locService.getLoc(customerId,startTime,endTime);
    }

    @RequestMapping("/getCardLoc")
    public BaseResult getCardLoc(Integer customerId,String imei,String startTime,String endTime){
        return locService.getCardLoc(customerId,imei,startTime,endTime);
    }
}
